//
//  PraviteImageTableViewCell.m
//  Arts1
//
//  Created by 孤星晨宇 on 15/9/20.
//  Copyright (c) 2015年 Arts1. All rights reserved.
//

#import "PraviteImageTableViewCell.h"
#import "AllHeader.h"

@implementation PraviteImageTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        _leftlabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 20, 80, 30)];
        _leftlabel.textColor = lFONTCOLOR;
        _leftlabel.font = [UIFont systemFontOfSize:14];
        [self.contentView addSubview:_leftlabel];
        
        _iconView = [[UIImageView alloc] initWithFrame:CGRectMake(SCREEN_WIDTH - 80, 15, 40, 40)];
        _iconView.backgroundColor = [UIColor whiteColor];
        _iconView.contentMode = UIViewContentModeScaleToFill;
        _iconView.layer.cornerRadius = 20;
        _iconView.layer.masksToBounds = YES;
        [self.contentView addSubview:_iconView];
        
    }
    return self;
}


- (void)setPhotoImage:(UIImage *)photoImage
{
    _photoImage = photoImage;
    
    _iconView.image = _photoImage;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
